In memory, the string resembles an array of characters in which the 0th character in the string
contains the length of the string, and the string itself is contained in the following characters.
The storage size of a ShortString defaults to the maximum of 256 bytes. This means that you
can never have more than 255 characters in a ShortString (255 characters + 1 length byte =
256). As with AnsiString , working with ShortString is fairly painless because the compiler
allocates string temporaries as needed, so you don’t have to worry about allocating buffers for
intermediate results or disposing of them as you do with C.