using System.Collections.Generic;
static class StringExtensions {
public static IEnumerable<string> SplitIt(this string str, int splitLength) {
for (var i = 0; i < str.Length; i += splitLength)
yield return str.Substring(i, Math.Min(splitLength, str.Length - i));
public static void Main()
var stringSections = "qwertyuiopasdfghjklzxcvbnmnbvcxzlkjhgfdsapoiuytrewq".SplitIt(2);
Console.WriteLine(String.Join(" ", stringSections));