Match characters of two strings : <p>Suppose,i have two strings.<code>NameIs</code> and <code>Nam</code>.Now i can check if one string is as same as the other using :</p>

<pre><code>If (string1 == string2)
</code></pre>

<p>But it won't work here as the strings are not the same.But a portion of it is same.What i am trying to achieve is to check if my main string has any portion of the string given...I came across <code>String.StartWith</code> and <code>EndWith</code> methods but there,i need to specify what the string might start or end with but i cannot as the strings can be anything(that's why at the beginning,i said "Suppose").</p>

<p>So my first question is how to achieve this ? I don't want any step=to=step instruction but atleast a little bit of direction :)</p>

<p>However,if i get past that,there's still a drawback and it is the <code>Case-Sensitive</code> issue.I've come across <a href="https://stackoverflow.com/questions/3121957/how-can-i-do-a-case-insensitive-string-comparison">this</a> but i can't seem to figure the required implementation of this in my case because i need to overcome the first issue first.</p>

<p>How should i achieve these ?</p>
