Run-time exception (line 9): Index and length must refer to a location within the string.
Parameter name: length
Stack Trace:
[System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length]
at System.String.Substring(Int32 startIndex, Int32 length)
at Program.Main() :line 9