added local strsep function