StringBuffer api changed. Uses cascaded calls now instead.

StringBuffer.add(...) method does not return StringBuffer instance anymore. It returns a void.

This patch fixes this