Pass the full word match into the replacement function

I found this simple change to be really useful. It simply gives the replacement function access to the full match via the third parameter.