Typescript Check If String Has Substring In C