Use operator= instead of lexical_cast when assigning to std::string