title: find and replace specific word in string
body: <p>I wish to write some c# code where I find a specific word in string and delete it from the string without deleting the whole string.</p>
  
  <p>I tried this but it won't work :</p>
  
  <pre><code>if (openFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
  {
      // Read the files
      for (int i = 0; i &lt; openFile.FileNames.Count(); i++ )
      {
          if (openFile.FileNames[i].Contains("Unknown Album"))
          {
              openFile.FileNames[i] = 
                  openFile.FileNames[i].Replace("Unknown Album", string.Empty);
          }
      }
  }
  </code></pre>