Function: Fixes str-slice behavior (#565).
Merge pull request #567 from am11/master

Function: Fixes str-slice behavior (#565)