Generify createRandomString