bug fixing

fixed bug with checking if variable is string type