Preparation of the yarn ends