trim whitespace
support indent