Added prototype for function that takes a string from the user
implemented function that takes a string from the user