fix #23366: capitalization

Hope I got all I wanted to get

Also fixed two typos in debug output