Hi Paul,
Thank you for the suggestion. That looks simpler and keeps the intended behaviour. I’ll replace the regex with these checks and send a v2.

Regards,
Anusmita