trim user inputs