Use compare instead of contains for the String reference expr type