title: Can we check if string contains in another string with case insensitive?
body: <p>I want to check if string contains in another string but in case insensitive manner. </p>
  
  <p>for example - "Kabir" contains in "Dr.kabir's house.". Now "Kabir" with  capital K should find in "Dr.kabir's house." with or without spaces in this sentence.</p>
  
  <p>I tried to use contains. But contains() is case sensitive, I also tried to use equalsIgnoreCase() but its not useful.</p>
  
  <pre><code>       for (int i = 0; i &lt; itemsList.size(); i++) {
          if (matching.contains(itemsList.get(i))) {
              item = itemsList.get(i).trim();
              break;
          }
      }
  </code></pre>
  
  <p>Also tried this by making string  uppercase but it checks for all the letters as Uppercase. I want to check if only initial letter is capital.</p>
  
  <pre><code>   for (int i = 0; i &lt; itemsList.size(); i++) {
          if (matching.contains(itemsList.get(i))) {
              item = itemsList.get(i).trim();
              break;
          }
      }
  </code></pre>
  
  <p>Can anyone help with this please? Thank you..</p>
  
  <p>EDIT : If I want to split "kabir" from the string how to do it?</p>