@Override
    public void insertString(final int offset, final String text, AttributeSet attributeSet) {
      editDocumentSafely(offset, 0, text);
    }
@Override
    public void insertString(final int offset, final String text, AttributeSet attributeSet)