Lots of materials after import fbx

After import the object, there is a material per part, if I have 300 parts, I have 300 materials like Material_001_1, Material_001_2, etc. How could I change all the _1, _2, to the first one?