remove mb_substr in struct function