This video fromHowcast’s YouTube channelexplains the steps for getting that string back where it belongs.
Attach the safety pin to the end of the string and get that sucker in one of the openings.
How to Get a Loose Drawstring Back into Clothing| YouTube