fix #23366: capitalization

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