Moving getwords function to the normalize module