Add whitespace validation. Closes #10