title: c# string.replace in foreach loop
body: <p>Somehow I can't seem to get string replacement within a foreach loop in C# to work. My code is as follows : </p>
  
  <pre><code>foreach (string s in names)
  {
      s.Replace("pdf", "txt");
  }
  </code></pre>
  
  <p>Am still quite new to LINQ so pardon me if this sounds amateurish ;)</p>