Reset prefix_string for each line to avoid reusing garbage between them.