further tweaking random string generation