use value comparison rather than object comparison for string constant