Fix: when truncationToken as link, its range may be out of range of real string and cause crash