Substr panicked on a negative length
A negative length in strutil.Substr means how many characters to cut from the end of the string. When the cut reached past the start position, for example hello with position 4 and length -3, the slice runes[4:2] panicked with slice bounds out of range.
The slice end never goes before the start
The stop index is clamped to the start position, so an over-long cut gives an empty string, just like a position beyond the text. TestSubstr gained the three cases that used to panic.