TextProcessor Class