protected boolean isRelevant(String term){
  return term.length() >= 3 && matches(characterPattern,term);
}

protected boolean isRelevant ( String term ) { return term . length ( ) >= 3 && matches ( characterPattern , term ) ; }
returns true if the given term contains only characters and has a length greater or equals to 3 .
