Added whitespace checks whitespace regex.

Fixes #3 for Richard.