You can check the expected acronym of your value by initially using: type(s) This will return you type 'str' so you can use it in the isistance function. Save this answer. Show activity on this post. if type(obj) == str: print('It is a string') else: print('It is not a string.