strtok now iterates through copies so that original is not modified