(#19056) strip trailing space while parsing AIX password file