Edit the box with the comma in the output style - citation template to remove the “invisible” space following the comma. See image attached
added in edit (save as to a new name and remember to change the style to the new name in the document on then endnote ribbon or in Word’s – endnote tool’s edit bibliography menu)