"basestring" is better than "str" as it includes unicode.