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
Dim TextPath = C:xxxxxx
TempText = ReadTextFile(TextPath)
Dim ModifiedString as String
ModifiedString = TempText.Replace("the_key_string", "replace_by_this_string")