public boolean match(String string){
  return strings.contains(string.trim());
}

public boolean match ( String string ) { return strings . contains ( string . trim ( ) ) ; }
returns true if the given string is contained in the value set .
