def is_string_like(obj):
try:<EOL><INDENT>obj + '<STR_LIT>'<EOL><DEDENT>except (TypeError, ValueError):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Check whether input object behaves like a string.

From:  _is_string_like in numpy.lib._iotools

**Parameters**

    **obj** :  string or file object

            Input object to check.

**Returns**

    **out** :  bool

            Whether or not `obj` behaves like a string.