updated formatting for hex string