Result.push_str(&word[idx..]); result } .

From previous inputs are kept in *1, *2, and *3.\n\nFor more information about how to build a.