Typescript Instanceof String Not Equals