public void insertString (int offset, String str, javax.swing.text.AttributeSet attr) throws BadLocationException {
	    if (str == null)
	      return;

	    if ((getLength() + str.length()) <= limit){
	      super.insertString(offset, str, attr);
	    }
	  }