well [man]trim/man only removes it from the end of the string. and by default trim() removes everything you specified (except \s which is a Perl RegEx element).
I'm guessing that if you just take out the second argument, you should be fine.
explode("%_%",trim($_POST["PROBLEM"]) );
But after a few tests, it won't trim anything that is within alpha-numeric characters. So if your post looks like:
"This is a test\nof a string that has\n\tsomething on a bunch of lines\n\n\n\n\n\n\n\t\t\t\t\t\t\t. "
Then the trim will only trim the last 2 spaces. If it looks like:
"This is a test\nof a string that has\n\tsomething on a bunch of lines\n\n\n\n\n\n\n\t\t\t\t\t\t\t "
It will trim all breaks and spaces.
If you use your trim() call, the "s" on the end of "lines" will be stripped as well.