Modified characterBoxes function to return characters in order.