//using System.Text; static string ExplodeChars(string Expression ) { return ExplodeChars(Expression, ' ', true); } static string ExplodeChars(string Expression, bool IncludeLast) { return ExplodeChars(Expression, ' ', IncludeLast); } static string ExplodeChars(string Expression, char Char) { return ExplodeChars(Expression, Char, true); } static string ExplodeChars(string Expression, char Char, bool IncludeLast) { if (!string.IsNullOrEmpty(Expression)) { StringBuilder Buffer = new StringBuilder(); int LastChar = Expression.Length - 1; for (int i = 0; i < Expression.Length; i++) { Buffer.Append(Expression[i]); if (IncludeLast || i < LastChar) Buffer.Append(Char); } return Buffer.ToString(); } else return string.Empty; }