buf = acc;
return acc;
  private void normalize()  {    StringBuffer acc = new StringBuffer();    int len = buf.length();    int avState = 0;    for (int i = 0; i < len; i++)      {        char c = buf.charAt(i);        if (c == ' ')          avState = (avState == 0) ? 0 : 1;        else          {            if (avState == 1)              acc.append(' ');            acc.append(c);            avState = 2;          }      }    buf = acc;  }