Cleanup node name text and add ellipsis trimming.