Typescript Loop Through String Array C