Sometimes when I write some text, I mistakingly put space before dot/comma or I forget to put space after dot/comma. I would like LaTeX to remove all space before dots and add space after punctuation.

For example:

"This is some text . This is some text"

should be

"This is some text. This is some text"

and

"This is some text.This is some text"

should be

"This is some text. This is some text"

I'm from Europe.