fix problems with space and uppercase letters in the label name