Fix random string generator