Use strdup to be able to use strtok on the category string and add a test case. Also safe some more information to be able to use color in the print statement.