Input masks: Not working as expected