pub fn safe_slice(s: &str, start: usize, end: usize) -> &str
Safe string slice that doesn’t panic on invalid indices.