Implemented replacement of matching words in dictionary with the corresponding number of '*' characters