renaming generateRandomString to generateUniqueString