title: Unable to use string.contains() in kotlin `when` expression
body: <p>I am new to <code>kotlin</code>, I have tried several ways to use following code </p>
  
  <pre><code>val strAction = "Grid"
   when(strAction){
     strAction.contains("Grid")-&gt;println("position is 1")
   }
  </code></pre>
  
  <p>In above code <strong>strAction.contains("Grid")</strong> this line is showing me an error that Incompatible Type</p>
  
  <p><a href="https://i.stack.imgur.com/zwvqB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zwvqB.png" alt="enter image description here"></a></p>