remove trailing a link