Sputtering

My 2003 Subaru Forester sputters after fill up. Once the tank is down 1/4 this stops. Another problem is on acceleration there is a clicking noise. How can these two problems be fixed?

My 2004 Jeep Wrangeler has same problem, sputtering and a clicking sound in the accelerator. If you troubleshoot, please let me know and I will do the same for you.