Implement anagram check and stable deduplication | Google