I retrieve a date from a form and subsequently aim to alter its format from DD-MM-YYYY to DD.MM.YYYY utilizing the replace function.
However, I've encountered an additional space at the end of the resulting text, which reads "DD.MM.YYYY ".
I am presently employing a workaround by conducting a secondary replacement of the space with an empty character in a subsequent step.
Where does this extra space come from?