public static string Reverse(string str) { char[] _chars = str.ToCharArray(); Array.Reverse(_chars); string newstr = new string(_chars); return newstr; }