use StringBuilder

StringBuffer is threadsafe (which you rarely need)