Replace tabs with correct number of spaces