Punctuate and capitalize the following so that it makes sense:
jane while john had had had had had had had had had had had a much better effect on the teacher
Jane, while John had had "had,", had had "had had." "Had had" had had a much better effect on the teacher.