Added tests and functionality to trim strings with escaped new lines.