(string) string.sub(string stack, number offset[, number maxlen]);
Returns a substring ranging from offset to maxlen.