define basestring in a better fashion.