edits labels to conform to w3c validation