return new UndoRemove(where, removedText);
return undoRemove;
  public UndoableEdit remove(int where, int nitems) throws BadLocationException  {    // check arguments    int length = length();    if ((where + nitems) >= length)      throw new BadLocationException("where + nitems cannot be greater"          + " than the content length", where + nitems);    String removedText = getString(where, nitems);    replace(where, nitems, null, 0);    return new UndoRemove(where, removedText);  }