Template for array_to_hex_string