title: Groovy/Grails Contains with Lowercase
body: <p>I want to check a list contains a specific string .</p>
  
  <p>before checking all entries in list as well as sting should be in. lowercase</p>
  
  <p>I tried like this </p>
  
  <pre><code> def venueName = params.name
   def venueNameLists = Venue.executeQuery("select name from Venue")
    if(venueNameLists.toLowerCase().contains(venueName.toLowerCase())){
              error = true;
              log.debug("save :: duplicate name")
              flash.message = "Venue name already exist";
              render(view: "create", model: [venueInstance: new Venue(params)])
              return
          }
  </code></pre>
  
  <p>gives error</p>
  
  <pre><code>  No signature of method: java.util.ArrayList.toLowerCase() is applicable for argument types: () values: []. Stacktrace follows:
  
    groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.toLowerCase() is applicable for argument types: () values: []
  </code></pre>