934 Trim string for dendrogram