The input_string_or_hash() function should check for basestring