They were spot-welded and bolted at the factory. They provide stiffness and tear-out resistance, should the truck strike something in the front. They help keep the cab from folding forward, in case of an accident. Trimming them may diminish this slightly, but it not totally, and it cleans the area up a bit.