use StringBuilder instead of StringBuffer (thread-safety is not required
for local variables)