fixed a bug with pwchars where numbers over 9 weren't considered