Original: The name of the play comes from the proverb All's well that ends well, which means that problems do not matter so long as the outcome is good.
Simplified: Proverb The name of the play comes from the proverb All's Well That Ends Well, which means everything works out, even though there were doubts.