Set legend string in one place.