ok, it should be `if (rightChar == selected)`