public static string SubstringExt([NotNull] this string s, int from) { if (from < 0) { from = s.Length - from; } if (from > s.Length) { return string.Empty; } return from <= 0 ? s : s.Substring(from); }