How to accept masked characters in an user created input box?