how to parse query strings in a custom way - C#