If nonsense were actually said by a person, then which is correct?

He told it off as "Nonsense."
He told it off as "nonsense."

Is punctuation correct?

The second one is correct.