# Problem with CSV.jl reading csv file with extra spaces

**URL:** <https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546>\
**Category:** General Usage\
**Tags:** csv\
**Created:** [September 2, 2021, 5:25am UTC](https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546 "2021-09-02T05:25:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Post date:** [September 2, 2021, 11:00am UTC](https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546/4 "2021-09-02T11:00:33Z")

</div>

In lack of better solution, you could remove all spaces while reading the csv file using [this trick](https://discourse.julialang.org/t/reading-data-text-files-delimited-with-both-spaces-tabs/64851/4) from @GunnarFarneback:

```julia
CSV.File(IOBuffer(replace(read(csvfile, String), " " => "")), missingstring = "", types = [Int, Int, Int])

```

---

_[View the full topic](https://discourse.julialang.org/t/problem-with-csv-jl-reading-csv-file-with-extra-spaces/67546)._
