string randomization code added