Fix some of the midi learn grammar in anticipation of substring search