check if a string in class variables code example Example: if type is string python isinstance(s, str)