Updated match pattern to only replace whole words.

Updated match pattern to only replace whole words.