Rather than COMMANDS and its join to CHRACTERS['commands'] be a messy cluster of \n, do some string parsing to make it look much cleaner and more readable.