Adding trim() to paths to handle different line end encodings