public boolean matches(String query,String text){
  return text.contains(query);
}

public boolean matches ( String query , String text ) { return text . contains ( query ) ; }
simple check if query string is a substring of a block of text .
