remove trailing spaces
replace tabs with spaces