Replaced single-character strings in StringBuffer.append() and replaced StringBuffer by StringBuilder where appropriate.

Signed-off-by: John May <john.wilkinsonmay@gmail.com>