[Bug 144725] improve check for palindroms in passwords