replace spaces in query with \%20