Maybe try "This text:trimmed". I think that’ll remove leading and trailing white space, which should include the new line character.