How can I limit the number of characters to 4 with input masking?