String sequences, code formatting, base code for the categorize command