Use StringBuilder instead of StringBuffer because it is faster (we are in a thread safe context and thus we don't need synchronization).