Updated code to center phrases

Updated Phrase handler code to properly center phrases.