how to compare the string which is passed as a parameter
the following method is not working.
String str = \"saveMe\" compareString(str) def
This should be an answer
str2.equals( str )
If you want to ignore case
str2.equalsIgnoreCase( str )