Cherries and worms

Can you tell me if you know how to get worms out of cherries that have been picked from the tree? Is there a method of some sort? We would like to use the fruit but it is very unappealing…