fix bug for two consecutive same letters