split string function from fio.c