clean_using_dictionary function

Perform dictionary-based cleaning