title: linq to object getting the correct pattern
body: <p>i have my records as follows</p>
  
  <pre><code>mazhar-kaunain-baig-5
  mazhar-kaunain-baig-5-6
  mazhar-kaunain-baig
  </code></pre>
  
  <p>this is my query</p>
  
  <pre><code>ptype = _pagecontext.PagesRefs
                      .Where(m =&gt; m.nvcr_Slug.Contains(str+ "-") &amp;&amp; m.bit_Active == true)
                      .ToList();
  </code></pre>
  
  <p><em><strong>correct results:</em></strong></p>
  
  <pre><code> 1) str=mazhar-kaunain-baig
  </code></pre>
  
  <p>bring back </p>
  
  <pre><code>mazhar-kaunain-baig-5
  mazhar-kaunain-baig-5-6   
  
   2) str=mazhar-kaunain  
  </code></pre>
  
  <p>bring back nothing</p>
  
  <pre><code> 3) str=mazhar 
  </code></pre>
  
  <p>bring back nothing</p>
  
  <p>the contains and equals becomes invalid in this scenario . how could i achieve the following result where i have the exact matching of the pattern.</p>