Fix bad string slicing

Slices and [inclusive:exclusive]