title: LINQ lambda expression to replace multiple characters in a string?
body: <p>Is it possible to write a lambda expression that will iterate through array of objects and replace all occurences of 'X', 'Y', ' ' and 'Z' in one of the properties?</p>
  
  <p>E.g.</p>
  
  <pre><code>return query.Select(x =&gt; { x.SomePropertyName= x.SomePropertyName.Trim().Replace(' ', "_"); return x; }).ToList();
  </code></pre>
  
  <p>For some reason, a query above doesn't replace a single character, when I need to replace multiple characters.</p>
  
  <p>Thank you</p>