title: Does Scala have a library method to build Option-s that takes into account empty strings?
body: <p>I want to filter out empty strings to put them into an Option. So I quickly built this now:</p>
  
  <pre><code>def StrictOption(s: String) = s match {
    case s if s != null &amp;&amp; s.trim.length() &gt; 0 =&gt; Some(s)
    case _ =&gt; None
  }
  </code></pre>
  
  <p>Question: is this maybe already somewhere in the standard library?</p>