Added a function to generate random strings