splice string so we can unselect character easier

not the best solution if there are many identical characters