I recommend trimming them prior to cooking them. The ends are a bit tough and fibrous, so trimming helps to create a tender and delicious green bean. I typically cut about 1/4 of an inch off of the ends.