std::string parse::get_value functional refactoring