refining text input