Precompute end iterator, use std::strinf in some cases