Use %X instead of %x + toUpperCase()