Add hexadecimal representation support

- Remove extraneous whitespace
- Add support for hex