title: ForEach to Trim string values in string array
body: <p>I just wondered why this ForEach doesn't work and leaves the values with trailing whitespace.</p>
  
  <pre><code>string days = "Monday, Tuesday, Wednesday, Thursday, Friday";
  
  string[] m_days = days.Split(',');
  
  m_days.ToList().ForEach(d =&gt; { d = d.Trim(); } );
  </code></pre>
  
  <p><strong>I know there are other ways of doing this so i don't need and answer there.</strong> </p>