str->basestring