Replace the tabs with spaces and clean the trailing whitespace