Trim URLs.