fn first_word(s: &str) -> &str { for (idx, c) in s.chars().enumerate() { if c == ' ' { return &s[..idx]; } } return s; }