code: private void stripTrailingDelimiters(StringBuilder buffer)
     {
        int index = buffer.length() - 1;
  
        while (index > 0 && buffer.charAt(index) == m_delimiter)
        {
           --index;
        }
  
        buffer.setLength(index + 1);
     }
docs: This method removes trailing delimiter characters.
  
  @param buffer input sring buffer