title: Find exact substring in string array using LINQ in C#
body: <p>I'm trying to see if an exact substring exists in a string array. It is returning true if the substring exists in the string but it will contains spelling errors. </p>
  
  <p>EDIT:
  For example if I am checking if '<code>Connecticut</code>' exists in the string array but it is spelled '<code>Connecticute</code>' it will still return true but I do not want it to. I want it to return false for     'Connecticute' and return true for 
      'Connecticut' only</p>
  
  <p>Is there a way to do this using LINQ?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.IO;
  
  namespace ConsoleApplication2
  {
  class Program
  {
      static void Main(string[] args)
      {
          string[] sample = File.ReadAllLines(@"C:\samplefile.txt");
          /* Sample file containing data organised like
          Niall      Gleeson      123 Fake Street     UNIT 63     Connecticute     00703       USA      
           */
  
          string[] states = File.ReadAllLines(@"C:\states.txt"); //Text file containing list of all US states
          foreach (string s in sample)
          {
              if (states.Any(s.Contains))
              {
                  Console.WriteLine("Found State");
                  Console.WriteLine(s);
                  Console.ReadLine();
              }
              else
              {
                  Console.WriteLine("Could not find State");
                  Console.WriteLine(s);
                  Console.ReadLine();
              }
          }
      }
  }
    }
  </code></pre>