Added a string specific function

A version of the user_input function for strings only has been created.
This should solve errors resulting from using integer comparators on
strings.