Transform forEach[...] to map[...].join()