I am aware that there are similar questions on this site, however, none of them seem to answer my question sufficiently.
This is what I have done so far:
I
Including this in the read.csv command worked for me: strip.white = TRUE
read.csv
strip.white = TRUE
(I found this solution here.)