Added a new handy method for generating random strings with pre-determined characters.