You do not need to trim the basil stems to make pesto. The whole stalk of basil can be added to the food processor and used if desired.