truncate link name of different lengths