Fixed the strtok calls, _only_ first needs to pass the string.