I\'m aware that I can use: isinstance(x, str) in python-3.x but I need to check if something is a string in python-2.x as well. Will isinstance(x, str)
isinstance(x, str)
type(string) == str
returns true if its a string, and false if not