use strdup instead to copy input string
ChangeLog about strtok_r
use strdup instead to copy input string