fix ostringstream replace