fix issue 42: support space heading parameter
Merge pull request #44 from ywang19/FIX_ISSUE_42

fix issue 42: support space heading parameter