Added isString() and toString() methods.