we need to drop support for javascript engines not supporting "trim" on strings