Move parseInt shim below "String#trim" to ensure it's trimming properly.
Support standard whitespace trimming.