fix the funciton mystrtok

now it can work well like the strtok in stdlib.h