Typescript Check If String Has Substring Method In Apex