Force createRandomString() to get the wanted number of characters