Strip off the newlines in user input