Function: Fixes str-slice behavior (#565).