private static string ForceStringLength(string input, int length) { StringBuilder returnString = new StringBuilder(input); while (returnString.Length < length) { returnString.Append(" "); } return returnString.ToString(); }