I think you need this (works for any length of a repeating string):
String result = source.replaceAll("(.+)\\1+", "$1")
Or, alternatively, to determine shorter matches:
String result = source.replaceAll("(.+?)\\1+", "$1")
It matches the group of letters first, and then again (using the backlink in the matching pattern). I tried this and it seems to have done the trick.
Example
String source = "HEY HEY duuuuuuude what'' up? Trololololo yeye .0.0.0"; System.out.println(source.replaceAll("(.+?)\\1+", "$1")); // HEY dude what up? Trolo ye .0
source share