Replacing partial of family type names for annotation & detail families


I have read through many of the discussions on on this topic and tried many of them too but it still doesn’t seem to work for me. I am very new to Dynamo, but was trying to figure out how to do this for our file.

The thing I am trying to do is:

Sort out all things (families, family types, shared parameters, material names, material appearances, etc) in the file with “_” and replace them into “-”.

I have had them worked for family name replacement but not anything further, neither the material or the family types.

Please help.

Thank you all.