Use StringBuilder instead of StringBuffer.
Fix String concat in StringBuilder.append parameter.