gsub(pattern, "pair of socks", c(text1, text2))