Replace "value is 'string'" comparisons with "value == 'string".