[ Fixes #62888792 ] Modified to add separators after words instead of
before and to not add a separator if it is the last or only word.