boolean (String inputString) { myErrorText = checkForErrors(inputString); if (myErrorText == null) { myWarningText = checkForWarnings(inputString); } else { myWarningText = null; } return myErrorText == null; }