str -> basestring