Piperazine Citrate syrup is sovereign for threadworms.
In the UK it used to be available at Boots Chemists (Pharmacists for US 'Catters) in a 125 ml. bottle.
Washing salad leaves, whether pre-packed or no is recommended - prevention is better than cure . . .