userInput function

userInput let the user type in a character string