I have been caught by this IDE bug a few times. I couldn’t find it in the FeedBack, so I have added it as <https://xojo.com/issue/34973>
Open any project then choose the Find and Replace option.
Enter some Find text that will occur multiple times within a single line of Xojo code
e.g myString = "Hello "+chr(34)+" Developer "+chr(34)+", how are you today?"
Find text: '+chr(34)+'
Replace text: ' + chr(34) + '
Choose to replace All. The first replace will work, but since the the replace text is a different length, the second replace on the same line is now incorrect.