Fixes in token case-sensitivity, hex color parsing and stringification