public static String getText (TextBoxBase box, String defaultAsBlank)
    {
        String s = box.getText().trim();
        return s.equals(defaultAsBlank) ? "" : s;
    }
public static String getText ( TextBoxBase box , String defaultAsBlank ) { String s = box . getText ( ) . trim ( ) ; return s . equals ( defaultAsBlank ) ? "" : s ; }
Retrieve the text from the TextBox, unless it is the specified default, in which case
we return "".