What a disappointment!
As a former smoker, I can admit that I never smelled cigarettes until I quit. I was smoke-free probably six months before I got in my car and it smelled "funny" because the smoke smell was no longer there. Mold starts asthma attacks for me, so it would've gone directly into the washer.
As to funky smells in books, the baking soda works. So does sunshine and leaving the book open in a sealed plastic container with charcoal. Each method takes a while.