if (text.EndsWith("y")) { plural = text.Substring(0, text.Length - 1) + "ies"; } else if (text.EndsWith("ch") || text.EndsWith("x")) { plural = text + "es"; } else { plural = text + "s"; }