Refactors words