Fix for GenRandomString

Strings are generated instead of single characters. Thanks Jay!