private static void ParseValuesCallbackMethod(string s, int start, int end, IList list) { // Deal with the cases: '' ' ' 'value' 'value ' while (end >= start && s[end] == ' ') { --end; } if (end >= start) { list.Add(s.Substring(start, end-start+1)); } }