Don't use acetone in a plastic piece. A lot of bongs are made from a plastic called acetate-- meaning acetone is an ideal solvent for it-- meaning your bong will melt like a wicked witch in a thunderstorm. I've heard that OxyClean works well, but I've not tried it.

As for glass, you can clean it with pretty much anything, and not worry about harming it.