Replacing tabs with spaces and errorsearching