Trimming the ends of welding rods