code: public static boolean areEqualTrimmed(final String left, final String right)
     {
        if ((left != null) && (right != null))
        {
           return left.trim().equals(right.trim());
        }
        return areEqual(left, right);
     }
docs: Return true if the given {@link String} instances are equal when outer whitespace is removed, or if both
  {@link String} instances are null. (E.g.: "  hello world  " is equal to "hello world  ")