Preparing cotton threads for dye process