Fix wrong usage of strtok