title: Check whether the string contains the given string or not
body: <p>For ex: a.text has name "capybara" and I need to check whether the string has characters "ba" in it.</p>
  
  <pre><code>if a.text.contains?("ba")
    # do something
  else
    # do something
  end
  </code></pre>