When a transaction's description contains your text, it gets that category. Your rules win over the built-in defaults (Fuel, Dining, Groceries…).