Typescript Check If Substring Exists