For the following code, I can\'t get the string.Replace to work:
string.Replace
someTestString.Replace(someID.ToString(), sessionID);
when I
someTestString = someTestString.Replace(someID.ToString(), sessionID);
that should work for you