test string as basestring instance