Added function to find overlapping subsrtings.