@Override
  public String toString() {
    return new String(buf, 0, size());
  }
A StringBuilder that allows one to access the array.
linguistics/src/main/java/com/yahoo/language/simple/kstem/OpenStringBuilder.java