Testing whether values are contained in strings