#include <bits/stdc++.h>
char s[100100];
int n, m, k, L, R, c, type;
int main() {
  scanf("%d%d%d%s", &n, &m, &k, s + 1);
  m += k;
  while (m--) {
    scanf("%d%d%d%d", &type, &L, &R, &c);
    if (type == 1)
      memset(s + L, c + '0', R - L + 1);
    else
      puts(memcmp(s + L, s + L + c, R - L - c + 1) ? "NO" : "YES");
  }
}
