The first line contains an integer $T(1 \leq T \leq 20)$, denoting the number of test cases.
The first line of each test case contains two integer $N(1 \leq N \leq 10^5), Q(1 \leq Q \leq 10^5)$, denoting the length of $S$ and the number of queries.
The second line of each test case contains a string $S(|S|=N)$ consisting of only lowercase english letters.
Then $Q$ lines follow, each line contains three integer $l, r(1 \leq l \leq r \leq N)$ and $k(1 \leq k \leq N)$, denoting a query.
There are at most $5$ testcases which $N$ is greater than $10^3$.