normalise attribute, because it should be case insensitive