method to get query params from query string