Added string trimming when separating category and message.
Removed unused import.