Implemented the first part of Metaphone algorithm.