remove default comment
trim whitespace when building document