update and test query whitespace stripping