UPDATE: stri_sub - if from or/and to is negative then counting characters backwards from last one. If to is missing then length is used. If both are missing then default to value -1 is used and returns substring till the end.