Remove trailing ? when updating URLSearchParams

Add a description of Remove trailing ? when updating URLSearchParams