Fuel pumps and carburetors both have sediment bowls, and even fuel tanks have the ability to isolate sediment and water from the delivery system, but as you have discovered, any and all of those safeguards can become overwhelmed. The easiest method of trapping impurities is the addition of a fuel filter, which can be placed at any point in the system, the best place depending partly on the type of impurities you have and the type of fuel pump in use. Generally, though, the best place is the most accessible and serviceable location, that being under the hood. Get a filter that is disposable, rather than the nicer looking glass ones, which are also less safe than the disposable filters. It does need to be transparent, so you can see if it needs replacing. The connections are important also, as most filters come with spring type hose clamps, which leak air in, or fuel out. Get the worm drive clamps, which can be tightened to eliminate leaks.