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
Strings are immutable, so calling the functions on the string doesn't actually change the strings. Instead they return a modified copy of the strings.
This means that you have to store the returned value of the functions, fore example in the original variable.