keypad string has a box at the end when sending to serial monitor

I am working on a project to send keyboard instructions from a Leonardo board to a computer. I am using Arduino Keyless Door Lock System with Keypad and LCD ( Kudos toDIYHacking.com) as a launchpad to help me understand how to do this. I have inserted a serial print to check the info sent out and there's a box at the end of the line. Can anyone explain where it is coming from? Copy of modified code attached.

snippet1_1602.ino (4.45 KB)

Please read the posting instructions - point #7 - to understand how to post code. There is a "modify" option below and to the right of your first post here.

Please explain - or better, show a screen dump of - what this "box" is?

A trailing NUL char may be missing from your string.