StrMid

Extracts a number of characters from a text from given position. First symbol have index 1.

StrMid(string, start [, count])
stringSource string.
startStart position.
countCharacters count. If omitted, then function extract characters till string end.

Remarks

If start is correct, but count if bigger then remain string length, then remain string returned.