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