a bit of cleanup on words