improvement getValue() from SimpleTextField.java