remove trailing whitespace
replace leading tabs with spaces