Replace basestring with str.