correct string to basestring