Probably it is very easy but for some reason, I can't manage to do it.
The problem is when I remove all the spaces\new lines with CHAR(13) and CHAR(10) and RTRIM it removes all of the spaces and new lines in both directions.
DECLARE @txt NVARCHAR(1000);
SET @txt = '
Some Text
';
Expected Result:
@txt = '
Some Text';