text input cleanups