refactor double metaphone: move code to methods 2