adding utility method

I added a utility method to replace font and color after the occurrence of a string