Shitty query strings parser