import stringbadParagraph = "\t\tThis paragraph \nhas even more \nproblems.!? "print "\nBad:\n" + badParagraphprint "\nFixed:\n" + badParagraph.strip((' ?!\t'))