Bob sits. A moment later, Bob stands. After that, Bob leaves.
I want to change every instance of Bob (no matter how many Bob's appear in the string) to the word Tom.
So...
Tom sits. A moment later, Tom stands. After that, Tom leaves.
This is what I'm currently using though it will only capture a single instance of the word: