code: public static String rightTrim(final String value) {
          validate(value, NULL_STRING_PREDICATE, NULL_STRING_MSG_SUPPLIER);
          return value.replaceAll("\\s+$", "");
      }
docs: Remove all spaces on right.
  
  @param value The String
  @return String without right boarders spaces.