Replace StringBuffer with String

These may be replaced with java.lang.String expressions which results in
simpler and possibly more efficient code.