I know I can append to a string but I want to be able to add a specific character after every 5 characters within the string
from this string alpha = abcdefghijklmno
string alpha = "abcdefghijklmnopqrstuvwxyz"; string newAlpha = ""; for (int i = 5; i < alpha.Length; i += 6) { newAlpha = alpha.Insert(i, "-"); alpha = newAlpha; }