added TextWriter for AIR
added StringUtil.addZeroToHeadOfNumber method