added ability to change number of characters in chargenerator.lua