If ( result == word ) then return If you don 't want to print last word
Console . Write ( " TABSYMBOL " + result + " STRNEWLINE " ) ; return ; } wordBreakAll ( root , word . Substring ( i , n - i ) , n - i , result + prefix + " ▁ " ) ; } } }