Don't toss around c string compares for format

Instead, use the enum that I created, and refer to the item index. Much
easier.