Trim custom url string