public CharBuffer trimWhitespace() {
        return trimWhitespaceStart().trimWhitespaceEnd();
    }
Trims off whitespace from the start end end of the buffer.
stroom-util/src/main/java/stroom/util/CharBuffer.java