Actually, that square boxy looking exhaust on your weed eater is, in fact, an expansion chamber. Specially designed for that particular engine, I know, since I bought a performance exhaust for a weed eater type engine that was on a goped, once. It worked well enough, and was the same size and shape as the original one. It worked better, though.
Well, don't hesitate to share that with the rest of us! Pipes are vary important to 2 stroke engines, the right or wrong pipe will make or break the performance of the engine.