adapted removeSelection call that now hasn't emit parameter bool
subst str with unicode