adjust code of splitting text