#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,Q; cin >> N >> Q; vector> ap(26); string s; cin >> s; for(int i=0; i> type; if(type == 1){ int pos; char c; cin >> pos >> c,pos--; ap.at(s.at(pos)-'a').erase(pos); s.at(pos) = c; ap.at(s.at(pos)-'a').insert(pos); } else{ string t; cin >> t; int pos = 0; for(auto c : t){ int v = c-'a'; auto itr = ap.at(v).lower_bound(pos); if(itr == ap.at(v).end()){pos = N+1; break;} pos = *itr,pos++; } if(pos <= N) cout << "Yes\n"; else cout << "No\n"; } } }