Improved HEX logic so it works with # or no #