Fixed bug in random string generator.