Add additional checks to StringBuffer.