condense comprehensions in `clean_urls()`