With an ECS would you store strings as part of components? Maybe you would have a name component which stores the player name or a villager name.
I haven't seen any examples of people storing strings in components. I would think storing a std::string would be inefficient so maybe a char* instead.