Filter typed characters in a TextInput box