Refactor text