Simplify output format for non-matching query string