The concat method is creating a new String object, which wastes memory. By
using a StringBuffer and the append method, you save it from creating (and
eventually destroying) an object. It may not seem like much, but do it a couple
hundred times a second and the wasted cycles will start to pile up.