human
find out if a Python object is a string
assistant
Here is some code to check if `obj_to_test` is a string

isinstance(obj_to_test, str)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.