Here, the elements are String or Pattern, so toString is cheap.
It's to bad that Pattern doesn't implements equals.