Fix the trim in previous fix in case the buildSelect return jQuery or DOM element