public static string trimStart(string self) { int len = self.Length; if (len == 0) return self; if (self[0] > ' ') return self; int pos = 1; while (pos < len && self[pos] <= ' ') pos++; return self.Substring(pos, len-pos); }