utils class, method that parses query string