What you are looking for is the
String.Substring(x,y)
method. What this method will do is grab a portion of the string at character (x) for a length of (y) characters.
This is a fairly low-level operation and it is incredibly easy to get errors for this:
1. If x < 0 then you will throw an Argument Out of Range Exception
2. This error will also occur if x(start character) + y(length)is longer than the string
Reference:
String.Substring Method (System) | Microsoft Docs[
^]