Function filterTextInputValue