Replace hashes with wildcards