private static void SkipSpaces(string name, ref int position) { while (char.IsWhiteSpace(name[position])) position++; }