trimming user input strings