Remove trailing whitespace from QueryResult.__str__ (Fixes #418)