Identificando strings python

>>> var = "a string"
>>> isinstance(var, str)
True
Cloudy Chipmunk