string St="hi";string Sv="HI";// Here this will avoid Cases (UPPER or LOWER)if (St.Equals(Sv, StringComparison.CurrentCultureIgnoreCase)) {MessageBox.Show("True");}