isinstance(foo, basestring)