convert whitespace to properly tested check