string type testing via isinstance(s, basestring)