revert list<string>->string optimisation, slower on ubuntu