title: How do I exactly match a word with C#'s contains function?
body: <p>I am trying to read out scripts through C# and determine if they contain certain words, but these words should be <em>identical to</em> instead of only containing what I'm looking for. Is there a way to use the <code>contains</code>-function, single out the word, and check if it is identical to the exact word?</p>
  
  <p>How can I determine if it both <em>contains</em> and <em>is identical to</em> the search term?</p>
  
  <p>Currently I am using the following script:</p>
  
  <pre><code>// GetScriptAssetsOfType&lt;MonoBehaviour&gt;() Returns all monobehaviour scripts as text
  foreach (MonoScript m in GetScriptAssetsOfType&lt;MonoBehaviour&gt;())
  {
      if (m.text.Contains("Material"))
      {
         // Identical check?
      }
  }
  </code></pre>