automatically trimming of passwords