get_remove_hex_fun function

Get a function that removes the hex string from filenames.