update string spilt method and split file