Extract createRandomString()