Replace tabs with spaces and cleanup them.