Bracket operator, string slices

String slice: a segment of a string

Syntax

SLICE = STRING[I:J]

with:

STRING, a variable of data type string

I, index for start of segment, a variable of data type integer

J, index for end of segment, a variable of data type integer

SLICE, a segment of STRING (note: SLICE is also of type string)