Find and replace if found more then once

Find and replace if found more then once


Is this possible?
I want to look in a div element with a certain ID and if the word
Subtotal is found more then once then replace the second instance of
it with Total?