Created isString method