Change input interation from iterator to stringstream