Added function for generating random strings