refactor double metaphone