Effective substring in Rust | Hacker News Reader