fixed hex_string to accept const