Typo.
Correct use of string method ``translate``. Remove duplicate separators from url_name and strip it.