code: public static String replaceAll(final CharSequence self, final CharSequence regex, final CharSequence replacement) {
          return self.toString().replaceAll(regex.toString(), replacement.toString());
      }
docs: Replaces each substring of this CharSequence that matches the given
  regular expression with the given replacement.
  
  @param self        a CharSequence
  @param regex       the capturing regex
  @param replacement the string to be substituted for each match
  @return the toString() of the CharSequence with content replaced
  @throws java.util.regex.PatternSyntaxException if the regular expression's syntax is invalid
  @see String#replaceAll(String, String)
  @since 1.8.2