Sorry, I did a mistake... the issue is slightly different and it has nothing to do with the spaces...
I actually did not really created a test user John Doe, but used an existing test user, who's last name was only one letter.
please check my edited post above. Not the whole last name is being removed. It's the last LETTER only. Tested with different users, different name lengths