parsing of query string