Can now pad a hex encode to a set number of digits