Typescript Check If Substring Exists Synonym