Fix parsing hex values

Hex values can also have the letters a-f in them.