string object replaced with flat array with new/delete