Set characters array more appropriately