added a new function: StringUtils::stripBothEndsSpaces().