Typescript String Comparison In C