To replace part of string in QTP we will use the code as shown below Example,
Str = (madanswer)
Suppose if you want to replace “99” with “88” then the code will
print replace(str,“99”, “88”) output will be “Guru88”