Refactor CLEAR_INPUT