Before replacing the carpet, try this (You should be able to buy it at Home Depot). I've used this at home on my carpets for years, and it has yet to fail in removing stains, smells, and embedded sticky objects in the carpet's fibers. It is a 2-step process with a spray prewash, and the second step is applying powder, brushing it thoroughly into the stain, and vacuuming the residue off.