Comparing Two Strings In Typescript