Fix whitespace issues

[ci skip]
Add custom charset support to getRandomString()