Fixed longest common substring to actually compare against 2 strings instead of checking repating substrings