decomposed process text

added two methods to help make processText cleaner