Optimize the code a bit - arrays are faster for joining strings than
using '+'-