Remove unwanted spaces in the URL field