fixes #5923 - ptable validation trailing spaces incorrectly allows one space