function_hash: make it easier to handle a file with a list of strings