Changed conversion from std:stringstream to boost lexical_cast