Implemented parsing of query string