Simplified handling of hex values