fix non-regex case for text input