Even better advice: use a well known package. CSV is a messy format, don't try to parse it on you own.
@MaxArt2501