It should have reached the end of file, but it hasn’t.
Instead I’m getting this weird string which isn’t an empty string nor does it appear to be spaces. Here’s a picture of what I”m getting from the debugger.

while ( (nextLine = csvReader.readLine()) != null && (nextLine != "")) {
...
}
Try,