using System;
using System.Linq;
namespace SandboxCore
{
class Program
static void Main(string[] args)
string str = "This is a test string. It has 44 characters.";
foreach (int i in Enumerable.Range(0, str.Length / 10))
string result = str[(10 * i)..(10 * i + 10)];
Console.WriteLine(result);
}