changed method for generating random string