Add function: replace_hash_content