Allow indexing of &str in Rust