refactoring number to words