test file, trimming input query