Fixing duplicate words in the resulting password