Simple query strings parser