Why not mb_strlen?
You also use mb_substr down there :arrow_down: