Capitalize attribute name in Legend