You should be able to do that with Substring:
Str1 = Str1.Substring(0, Str1.Length-2) + "99"
See this post to learn about string manipulation: