Remove the extra trim from String.isBoolean

Save the extra trim.