Yggdrasil wrote:


1) I can think of two problems with the Trim call. The first is that Trim only removes the given character from the beginning and end of the string. string.Replace might be what you're after. The second is that Trim, like all string functions, doesn't modify the string itself but rather returns a new string with the given result. Code would be something like:

string myString = "hello:";
myString = myString.Trim(':');



2) <a/> is equivalent to <a></a> in XML. An empty node can be shortened, to save space and simplify the display.

3) Can't help you with the freezing, I'm afraid.



Thanks for the help.  I reported #3 to MS.

Re: The second is that Trim, like all string functions, doesn't modify the string itself but rather returns a new string with the given result.

But with myString.Replace (":",String.Empty), it will modify the string itself, without having to set it to it, no?