Declared charPositions at beginning of script