fixed bug and typo in rand_string