improvements to RandomStringGenerator