#include <bits/stdc++.h>
using namespace std;
int n, m, k, r, l, c, typ;
char s[100005];
int main() {
  scanf("%d%d%d", &n, &m, &k);
  m += k;
  scanf(" %s", s + 1);
  for (int i = 1; i <= m; ++i) {
    scanf("%d%d%d%d", &typ, &l, &r, &c);
    if (typ == 1)
      memset(s + l, c + 48, r - l + 1);
    else {
      if (memcmp(s + l, s + l + c, r - l - c + 1) == 0)
        printf("YES\n");
      else
        printf("NO\n");
    }
  }
  return 0;
}
