How replace , and - in all excel cells

give a try on following:

using x.ToString.Trim.Replace(" - "," ").Replace(",","")