Understanding Pointers, Arrays and Strings. My own version of strtok()