Fixing formatting on hexadecimal output