so ı just figured out that ı really shouldn't be using strtok as there is only one crucial difference between iterating straight through string or through its each individual word by delimiting the string with spaces is that my program will ignore spaces and will not convert and print them as binary. Thank you all for making me figure that out.