Repair a comparison of a Boolean to a string