Adds support for old IE where String.trim is not defined.