The dialogue is enclosed in quotation marks. A comma follows the dialogue and comes before the closing quotation mark. A period ends the sentence. Punctuation serves to separate the spoken words from other parts of the sentence. Because the dialogue tag—she said—is part of the same sentence, it is not capped.