Removes excess hyphens from ids