Tie a knot at the end of the yarn to prevent it from unraveling. Also, fray glue can be found at fabric/crafting stores.

Talk Doctor Online in Bissoy App