GetSubString

The   NWScript command extracts a portion of a string as a new string. If an error is encountered (such as trying to obtain a string of negative length), a zero-length string, "", is returned.

Definition
If the requested substring goes beyond the end of the original string, as in, then the returned string consists of what is available, as in   for this example. In this case, the length of the returned string can be less than  without being zero.