Create character matching conditional