pub fn get_word_from_string(start: usize, end: usize, text: &str) -> String
Get a UTF-8 word from a string given the start and end indices.