I have a cub cadet 3000 which is now about 16 years old. Couple of years ago, it did the exact thing you describe. Started good, ran good at idle, but the minute I applied throttle it died. The trimmer head was worn out and I'd replaced fuel lines a couple of years before. I didn't want to pour anymore money into it, so I figured I'd take the carb off, clean it real good and stick it back on. IF it worked - great, if not, I'd buy another trimmer.
Cleaned the carb and low and behold it worked - ran at full throttle. I had to adjust the idle up on it to keep it running, but it ran great all last year and started up great this year. I even sprang for a new reel head and bump knob for it. Cut for an hour with it just last week.
Use Seafoam gas treatment in your small engines. It works wonders.