Replace StringBuffer.toString() in concatenation

In addition to being confusing, this code performs String allocation and
copying, which is unnecessary as of JDK1.4
Merge pull request #504 from naoliv/pull6

Replace StringBuffer.toString() in concatenation