StringBuffer implementation.