// If the string is longer than 64 characters, keep the last 64 characters
if (formatted.length() > 64) {
formatted = formatted.substring(formatted.length() - 64);
}
The above code will cause the method name to be truncated, but I don't think it's necessary