changing secondary key generator
changing secondary key to length of string