I've changed StringBuffer to StringBuilder

StringBuilder javadoc:
Where possible,
 * it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.