The VBScript trim() function only removes whitespace on the left and right of a string, so I don't think it will remove line breaks in the middle of other non-whitespace characters. Can you just use the Replace function on the string to get rid of them (replace line break characters with empty strings)? You might need to account for both Linux (vbNewLine) and Windows (vbCrLf) styles.
#XPression