handle leading spaces correctly
Merge pull request #9 from jonathanong/array-leading-space

array: handle leading spaces correctly