Using implode with array here would propably have better performance than repeated string concat.