Duplicate character remover implemented