Why does my gas line trimmer run rough?
If the fuel in your gas line trimmer sits in the tank for months, it can pick up moisture and fail to ignite (that's why you should drain the fuel before storing for the winter or treat the gas with fuel stabilizer before filling the the tank). Replace the fuel with fresh gas if it's old and untreated with stabilizer. You might also need to replace the fuel filter at the same time. Performing preventive maintenance including a line trimmer tune-up will also help the engine run smoothly.
Check the fuel lines for cracks and replace them if necessary. If you still have problems after checking those issues, consider replacing or rebuilding the carburetor.
These repairs may help solve your gas-line-trimmer problem

Replace the grass line trimmer fuel lines
Fuel lines become brittle over time and can crack or tear. Replace a fuel line that's brittle or damaged. Be careful to install new fuel lines on the engine the same way the original fuel lines were configured.
Grass line trimmer fuel lines
How to replace a line trimmer fuel line
If your line trimmer won't start even though it's filled with gas, a split or blocked fuel line coul…
Repair time and Difficulty

Replace the grass line trimmer carburetor
The carburetor mixes air and gasoline in the proper proportions to create a combustible gas. If the engine starts and then sputters, or doesn't start at all due to lack of fuel, you might need to replace carburetor. It's often more cost effective and practical to replace the carburetor rather than rebuild it.
Grass line trimmer carburetor
How to replace a line trimmer carburetor
If your line trimmer is hard to start or just plain won't start, the carburetor could gummed up, or …
Repair time and Difficulty

Rebuild the grass line trimmer carburetor
Rebuild kits are available for most carburetors. The kit contains essential components for rebuilding a carburetor, such as diaphragms, seals and gaskets. You can sometimes fix a fuel supply problem by dismantling and cleaning a carburetor. Use the kit to rebuild the carburetor after cleaning it.
Rebuild the grass line trimmer carburetor
How to rebuild a line trimmer carburetor
A line trimmer that's difficult to start could have a carburetor that's ready for a rebuild. This DI…
Repair time and Difficulty

Do grass line trimmer preventive maintenance
Proper maintenance ensures that a grass line trimmer runs smoothly and works properly. Refer to your owner's manual for guidance in maintaining the line trimmer. Replace parts such as the air filter, fuel filter and spark plug.
Do grass line trimmer preventive maintenance
How to replace a line trimmer fuel line
If your line trimmer won't start even though it's filled with gas, a split or blocked fuel line coul…
Repair time and Difficulty