fix bug for replace letters