My god what we have reached, people having to learn Julia in their classes?
You can explore Julia more, you may like it.
It should work like this:
if c in check
push!(newCheck, c)
replace(check, c => "")
end
check = newCheck
(yes, you can check if char in string, and use check = newCheck)