title: Extract First and Last word from a string and remove them if matches the third one using C#
body: <p>My string is like this:</p>
  
  <pre><code>string str = "Psppsp palm springs airport, 3400 e tahquitz canyon way, Palm springs, CA, US, 92262-6966 psppsp";
  </code></pre>
  
  <p>I get the string "psppsp" separately and need to compare it with the first and last word in str and if found (at first or last word), need to remove it from str. </p>
  
  <p>I need to know the best and fastest way for the same.</p>