Ignore spaces in text input