Typescript Group Array To String Python Center