Refactoring Text