Input mask validation helpers