string test = "qwertyuioplkjhgfdsazxcvbnm,.lkjhgfdsaqewrtyuiop";
int xtest = test.Length - 1;
int step = xtest / 10;
string t = test.Substring(5, 40);
string tt = test.Substring(8, 40); // System.ArgumentOutOfRangeException
Console.Write(t);