fixed word regex to support blank lines and extra punc."