Windows uses two characters for definining newlines, namely ASCII 13 (carriage return, "\r") and ASCII 10 (line feed, "\n") aka CRLF. So if you have a string with CRLF's, trim() won't recognize them as being one newline. To solve this you can use str_replace() to replace the CRLF's with with a space or something.
$my_string = "Liquid\r\nTension Experiment\r\n\r\n\r\n";
$my_wonderful_string = str_replace("\r\n", " ", $my_string);
$my_wonderful_string = str_replace("\r\n", "", $my_string);