remove trailing whitespace, \t => '    '