trim user input