Which quotation is correctly punctuated and formatted?
"I tried to see who was in the car, Ellen told the police, but it was too dark."
"I tried to see who was in the car," Ellen told the police, "but it was too dark."
"I tried to see who was in the car," Ellen told the police, but it was too dark".
"I tried to see who was in the car, Ellen told the police, "but it was too dark."