Rewrite Ship function to use boost::format, store the result in a std::string and pass it back.  Constify the argument and take it by reference instead.  Remove global variables junk and adr.  Update all callers accordingly.