Replace text in word document using Interop 3

I’ve used the python script in this thread, however it replaces all the characters in the search string with multiple copies of the first character of the replacement string.

can anyone advise on how to fix this ?