Replaced appending of string elements with format