Modified dictionary to denote letter groups with a newline