How to accept text/number in predefined format ?