Use strtok_r instead of strtok