Add a function to strip query params