'' Insert the current character  as last character of  current substring
D . append ( s [ j ] ) NEW_LINE M [ str ( " " . join ( list ( D ) ) ) ] = M . get ( str ( " " . join ( list ( D ) ) ) , 0 ) + 1 NEW_LINE