using System.Collections.Generic;
public static void Main()
String text = @"Delivering the
“holy grail” of graphics to gamers,
Huang introduced the world’s first real-time ray-tracing gaming GPUs — supported by a fat roster of upcoming blockbuster game titles — to a heaving crowd at the Palladium, a spare steel and concrete music venue tucked between railroad tracks and metal fabrication shops on Cologne’s gritty industrial north side.";
for (int i = 0; i < text.Length; i++)
if (text[i + 1] == ' ' || text[i + 1] == '\n' || text[i + 1] == '\r')
for (int j = i + 2; j < text.Length; j++)
if (text[j] != ' ' || text[j] != '\r' || text[j] != '\n')