Typescript Change Index In Array Javascript Append Text To String