str slice: Trim slice indexes to be in range.

Fixes a testcase failure slipped in #59.

Btw, did someone already say that rule "always have a brace block for if's, etc." leads to  verbose code? ;-)