The Copy function returns a sub-string of Count characters of the string S, starting at position given by Index.
Index should be set to 1 for the first character.
Count is the number of characters to return, including the starting character.
Declaration: function Copy(S: string; Index: Integer; Count: Integer): string;
An example.