space after .

Hello
I have two files
myfiles .pdf
myfiles .pdf .xmp
when I usethe fonction replace " ." by "." the second space is not remote
I obtains this
myfiles.pdf
myfiles.pdf .xmp
I have two files
myfiles .pdf
myfiles .pdf .xmp
when I usethe fonction replace " ." by "." the second space is not remote
I obtains this
myfiles.pdf
myfiles.pdf .xmp