title: How to search the whole string for a specific word?
body: <p>I have this code which searches a string array and returns the result if the input string matches the 1st characters of a string:</p>
  
  <pre><code>for (int i = 0; i &lt; countryCode.length; i++) {
              if (textlength &lt;= countryCode[i].length()) {
                  if (etsearch
                          .getText()
                          .toString()
                          .equalsIgnoreCase(
                                  (String) countryCode[i].subSequence(0,
                                          textlength))) {
                      text_sort.add(countryCode[i]);
                      image_sort.add(flag[i]);
                      condition_sort.add(condition[i]);
                  }
              }
          }
  </code></pre>
  
  <p>But i want to get those string also where the input string matches not only in the first characters but also any where in the string? How to do this?</p>