trim whitespace and tab to space