add range constraint to querybuilder. Refs #797
trim whitespace