Если тип - String Python
isinstance(s, str)
Fair Fly
isinstance(s, str)
# Method 1
isinstance(variable, str)
# Method 2
type(variable) == str