Improve refile history to contain exact matches only