Correctly converts string label to values