Avoid unnecessary object creation

Prefer StringBuffer.append(string, index1, index2) over
StringBuffer.append(String.substring(index1, index2).