I'm facing trouble naming a file in n8n's node 'Read/Write Files from Disk' when saving to disk, it places 'new line symbol' after extension.

Hi, I’m working on Ubuntu22.04, PC

I am using this string to name the files uniquely:(well, not a pro but beginner, just using AI) :smiling_face:

/path/{{ image_${$itemIndex}_${new Date().toISOString().slice(0,19).replace(/:/g, "-")}.trim() + ‘.png’ }}

=
/path/image_0_2025-04-14T15-51-13.png

it names the file good, but in GUI, when i click to rename it the symbols the become visible.

image_0_2025-04-14T15-53-23.png↵↵↵↵

Hey @3T-InfoTinker Try this approach /path/_image_{{ $itemIndex }}-{{ $now.format('yyyy-MM-dd') }}-{{ $now.format('HH-MM-ss') }}.png