trim dendrogram names if too long