truncate long strings in links