Recursively build query string
Fixed spacing and rebuild