It sounds like you're describing tonsillar stones (also called tonsilloliths), which are clumps of food particles, mucus, dead tissue cells and more that can collect in the crypts found on the surface of the tonsils.
CNN: What are those white lumps in my tonsils?