title: Trimming a string using an array of characters using C#
body: <p>When you use the <strong>Trim()</strong> method on a string object, you can pass an <em>array of characters</em> to it and it will remove those characters from your string, e.g:</p>
  
  <pre><code>string strDOB = "1975-12-23     ";
  MessageBox.Show(strDOB.Substring(2).Trim("- ".ToCharArray()));
  </code></pre>
  
  <p>This results is "75-12-23" instead of the expected result: "751223", why is this?</p>
  
  <p><strong>Bonus question</strong>:
  Which one would have more overhead compared to this line (it does exactly the same thing):</p>
  
  <pre><code>strDOB.Substring(2).Trim().Replace("-", "");
  </code></pre>