split and capitalize words in labels