specify maximum for whitespace checking. resolves #378.