Change logic before-after
Part of list with space before it, if it space not just after string
and no space between items in part will be added to before next string.