<human>:  How to check if type of a variable is string?
<bot>: Here is some code to check if type of a variable `s` is string

isinstance(s, str)

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