Function normalizePhraseText