replace link text only when title is there