Query String Clean Up (Separate Function)