added trimming around CSV line processing