String (String fieldText) { if (!myPattern.matcher(fieldText).matches()) { return JavaStartersBundle.message( "message.only.latin.characters.digits.spaces.and.some.other.symbols.are.allowed.here"); } return null; }