test_string function

Test if input is a string