Work with optional parameters in query string