@Override public MatchResult match(String str){
  String input=str.trim();
  if (input.equalsIgnoreCase(string)) {
    return new MatchResult(0,string.length());
  }
 else {
    return new MatchResult(false);
  }
}

@ Override public MatchResult match ( String str ) { String input = str . trim ( ) ; if ( input . equalsIgnoreCase ( string ) ) { return new MatchResult ( 0 , string . length ( ) ) ; } else { return new MatchResult ( false ) ; } }
returns a match result if the provided value is identical to the string template . else , returns an unmatched result .
