Issue #3291587 by joseph.olstad, lauriii, longwave: Regression fix for (if feasible) uses of the jQuery trim function to use vanillaJS