title: Contains doesn't make a difference between "Level 1-1" and "Level 1-11" in my List<string>
body: <p>I have the following items in my List:</p>
  <p>Leaderboard Level 1-11 Ticket</p>
  <p>Leaderboard Level 1-1 Ticket</p>
  <p>Now, I want to check if there is an item in the list that contains the string &quot;Level 1-1&quot;.</p>
  <p>The problem is that <em>if (ticketslist[i].Contains(name))</em> is true if the item is &quot;Leaderboard Level 1-11 Ticket&quot; and &quot;Leaderboard Level 1-1 Ticket&quot;. But I only want that <em>if (ticketslist[i].Contains(name))</em> is true if the item is &quot;Leaderboard Level 1-1 Ticket&quot;.</p>
  <p>What can I do so that <em>if (ticketslist[i].Contains(name))</em> is only true when the item is &quot;Leaderboard Level 1-1 Ticket&quot;?</p>
  <pre><code>  List&lt;string&gt; ticketslist = new List&lt;string&gt;();
    ticketslist.Add(&quot;Leaderboard Level 1-11 Ticket&quot;);
    ticketslist.Add(&quot;Leaderboard Level 1-1 Ticket&quot;);
    string ticket = string.Empty;
    string name = &quot;Level 1-1&quot;;
  
    for (int i = 0; i &lt;= ticketslist.Count - 1; i++)
    {
      if (ticketslist[i].Contains(name))
      {
        ticket = ticketslist[i];
        break;
      }
    }
  </code></pre>