Fix an issue when some of the parameters that are using ';' as a separator. If the string was finishing with a ';' then explode() was creating an empty item in the array which was sometime leading to unexpected results. We not trim these strings.