using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Linq;
public class Test
{
public static void Main()
{
var s = "All men like widgets but some men like widgets more than others";
var chunks = Regex.Split(s, @"(\s*\bwidgets\b\s*)");
string result = string.Concat(chunks.Select((i, index) => index % 2 == 0 ? $"<b>{i}</b>" : i));
Console.WriteLine(result);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uSU87CnVzaW5nIFN5c3RlbS5UZXh0LlJlZ3VsYXJFeHByZXNzaW9uczsKdXNpbmcgU3lzdGVtLkxpbnE7CnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQl2YXIgcyA9ICJBbGwgbWVuIGxpa2Ugd2lkZ2V0cyBidXQgc29tZSBtZW4gbGlrZSB3aWRnZXRzIG1vcmUgdGhhbiBvdGhlcnMiOwoJCXZhciBjaHVua3MgPSBSZWdleC5TcGxpdChzLCBAIihccypcYndpZGdldHNcYlxzKikiKTsKCQlzdHJpbmcgcmVzdWx0ID0gc3RyaW5nLkNvbmNhdChjaHVua3MuU2VsZWN0KChpLCBpbmRleCkgPT4gaW5kZXggJSAyID09IDAgPyAkIjxiPntpfTwvYj4iIDogaSkpOwogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKHJlc3VsdCk7Cgl9CgkKCQp9Cgo=