Added ScanCursor::str_slice_to_cur.

This is needed for slice captures; it returns a &str between two cursors.