isString check added