I am not sure what you are speaking of but I use this on very large files and variables and it works great:
B4X:
MyVar.Replace("Bad", "Good")
Replaces all instances of the work Bad in the variable MyVar with the word Good. I can take a file with 5,000 words and many hundred instances and it will replace all of them as fast as you can click the button.