Correct way of passing query string value