isinstance(x, str) --> isstring(x)