Twirling hair?

My toddler won’t stop twirling her hair. She has gotten her finger completely caught before. She also is constantly getting it knotted . I have no idea what to do.