Modified make random string method