string_slices: use an immutable reference to protect from overwriting