Hi,
I'm trying to trim certain caracters from a string but it is not working.
Here is my code:
string sMystring = "what you waiting for? ";
char[] cInvalid = { '\\', '-', '/', '*', '?', '<', '>', '|'};
sMystring = sMystring.Trim(cInvalid);
I realized that if I remove the last space in the string it works, but why is this happening?
It seems to me that the last white space should not interfere in the process.
Thanks in advance.