Thanks! Does it mean that it is perfectly alright to leave out the commas in both case ?
My daughter's teacher taught them to use comma for these situations:
1. The sentence is, "Quote sentence."
2. The word is, "quote".
3. The phrase is, "quote phrase".
We are confused when the comma is needed.