I am passing a message from a server that gets stored into a string variable called strObject. I wish to convert the string inside strObject to upper case. So, I use ToUpper
A System.String is immutable, so you must re-assign, like:
strObject = strObject.ToUpper().Trim();
All methods that manipulate strings, leave the original string unchanged and returns a new string with the desired content. You must pick up that return value and assign it to something.