Typescript Reduce Array Of Strings