fix white-space check