remove trailing ")" in link