Optimized string format function to use lazy concatenation
Ported some more GUI related stuff to the new string class