Add a small strip of fabric or felt to the top of the hat then string the twine through the felt loop.