1256_D. Binary String Minimizing
You are given a binary string of length n (i. e. a string consisting of n characters '0' and '1').

In one move you can swap two adjacent characters of the string. What is the lexicographically minimum possible string you can obtain from the given one if you can perform no more than k moves? It is possible that you do not perform any moves at all.

Note that you can swap the same pair of adjacent characters with indices i and i+1 arbitrary (possibly, zero) number of times. Each such swap is considered a separate move.

You have to answer q independent test cases.

Input

The first line of the input contains one integer q (1 ≤ q ≤ 10^4) — the number of test cases.

The first line of the test case contains two integers n and k (1 ≤ n ≤ 10^6, 1 ≤ k ≤ n^2) — the length of the string and the number of moves you can perform.

The second line of the test case contains one string consisting of n characters '0' and '1'.

It is guaranteed that the sum of n over all test cases does not exceed 10^6 (∑ n ≤ 10^6).

Output

For each test case, print the answer on it: the lexicographically minimum possible string of length n you can obtain from the given one if you can perform no more than k moves.

Example

Input


3
8 5
11011010
7 9
1111100
7 11
1111100


Output


01011110
0101111
0011111

Note

In the first example, you can change the string as follows: 1\underline{10}11010 → \underline{10}111010 → 0111\underline{10}10 → 011\underline{10}110 → 01\underline{10}1110 → 01011110. 

In the third example, there are enough operations to make the string sorted.
```python
'''q=int(input())
for i in range(q):
	n,k=map(int,input().split())
	a=input()
	b=[]
	indices=[]
	for j in range(n):
		if(a[j]=='0'):
			indices.append(j)
		b.append(a[j])
	e=0
	t=0
	while(k>0 and e<=len(indices)):
		
		if(indices[e]<=k):
			b[indices[e]],b[t]=b[t],b[indices[e]]
			k=k-indices[e]
			t=t+1
		else:
			ar=indices[e]-k
			b[indices[e]],b[ar]=b[ar],b[indices[e]]
			break
		e=e+1
	st=''
	for k in range(len(b)):
		st+=b[k]
	print((st))
'''
for i in range(int(input())):
	n,k=map(int,input().split())
	a=list(input())
	
	ans=['1']*n
	t=0
	for j in range(n):
		if(a[j]=='0'):
			s=min(k,j-t)
			k-=s
			ans[j-s]='0'
			t+=1
	print("".join(ans))
```