Cut the threads of different lengths