Clean up input helper