private string CleanName(string name, bool keep_feat = false) { var clean = name; clean = Tools.FixFeaturedArtist(clean); var index = -1; if (!keep_feat) { if (clean.Contains("(ft.")) { index = clean.IndexOf("(ft.", StringComparison.Ordinal); } if (clean.Contains("[ft.")) { index = clean.IndexOf("[ft.", StringComparison.Ordinal); } else if (clean.Contains(" ft.")) { index = clean.IndexOf(" ft.", StringComparison.Ordinal); } if (index > -1) { clean = clean.Substring(0, index).Trim(); } } clean = clean.Replace("(Live)", "").Trim(); clean = clean.Replace("(live)", "").Trim(); clean = clean.Replace("(2X Bass Pedal)", "").Trim(); clean = clean.Replace("(2x Bass Pedal)", "").Trim(); clean = clean.Replace("(2X Bass)", "").Trim(); clean = clean.Replace("(2x Bass)", "").Trim(); clean = clean.Replace("(2X Pedal)", "").Trim(); clean = clean.Replace("(2x Pedal)", "").Trim(); clean = clean.Replace("(RB3 Version)", "").Trim(); clean = clean.Replace("(RB3 version)", "").Trim(); clean = clean.Replace("(Rhythm Version)", "").Trim(); clean = clean.Replace("(rhythm version)", "").Trim(); clean = clean.Replace("(Rhythm Guitar Version)", "").Trim(); clean = clean.Replace("(rhythm guitar version)", "").Trim(); clean = clean.Replace("(Rhythm Guitar)", "").Trim(); clean = clean.Replace("(rhythm guitar)", "").Trim(); return(clean); }