Tidies up the formatting of a domain