made changes in getRandomString