trim URLs