Traced source of trim() warning and added explanatory comment