I wrote up some code. The code is shown below. The first part is to read a html into string format. The second part is to search a mark in the string and replace the string
You have to assign the value to something, like :
TempText = TempText.Replace("the_key_string", "replace_by_this_string")