ternary operator & strtok()