methods from converting to/from hexit strings