string sub ranging - comments by Grey@TMI-2
You can take a substring from a variable ( str ) buy using the substring
operation ( str[n1..n2] ). Positive values are taken from the left and
values with <
from the right. If a value is greater than the length of
the string it will be treated as being equal to the length of the string.
This is a companion discussion topic for the original entry at https://www.fluffos.info/lpc/types/strings.html#gsc.tab=0