fixed a bug where it behaved unexpectedly when the mask contained number

When textField.mask is set to a string that includes numbers (e.g "0(###) ### ## ##"), textField takes multiple inputs when a single character is entered.