added isString type-checker internal function