Fix word validation logic

Word validation should return false if there are any non-word characters in the data.
Merge pull request #1 from johnpbloch/upstream

Fix word validation logic