First, check for leaks around the carb. There is a black plastic spacer flange, part # 4137-121-1601 or 4137-121-1600, that holds the carb away from the cylinder. Check it for cracks. If the trimmer gets worse as it heats up, this could be the problem.
But, I'll bet you put a new carb on it, it'll run like new.