SyntaxFix
Write A Post
Hire A Developer
Questions
Another solution that may not be mentioned
S.Substring(S.Length < 6 ? 0 : S.Length - 6)