Use strtok, strcat and strcpy instead of loops.  Added stressTest