Added function that find the longest repeated substring in a given string