Remove the extra trim from String.isBoolean

Save the extra trim.
If `this` is a boolean, this condition will cause the function to always return `false`. Change it to `===`.