forbid meltiple new lines in multiline texts
improved str_collapse_spaces