Typescript Loop Over String Array C