creating random string generating function