This could be `match word.as_slice() {` rather than using the temporary `&str` manually. (Just a note; it doesn't matter particularly.)