Typescript String Array Adding Exponents