[DF-4863] Remove spaces from begin/end of new lines in multiline text