Issue #376 - Handle accountName if it is an array
This happens because the accountName passed to the trim function is not a string. Initially, it was being passed as a string example actifit, but later it was sent as an array['@actifit'] when clicking on "Go to result page, " causing the problem.
The fix will not affect the search functionality but will only check if the value is array and set the accountName.