simple parser for supplied query string