Fix for the string.trim bug where all whitespce string was not trimmed.