title: How can I determine if a String is non-null and not only whitespace in Groovy?
body: <p>Groovy adds the <code>isAllWhitespace()</code> method to Strings, which is great, but there doesn't seem to be a <em>good</em> way of determining if a String has something other than <em>just</em> white space in it.</p>
  
  <p>The best I've been able to come up with is:</p>
  
  <pre><code>myString &amp;&amp; !myString.allWhitespace
  </code></pre>
  
  <p>But that seems too verbose. This seems like such a common thing for validation that there <em>must</em> be a simpler way to determine this.</p>