private void createAndAdd(XmlNode node)
{
var word = XmlUtils.GetXMLAttrString(node, "word").Trim();
var replaceWith = XmlUtils.GetXMLAttrString(node, "replaceWith").Trim();
if (!String.IsNullOrEmpty(word) &&
!_wordList.ContainsKey(word) &&
!String.IsNullOrEmpty(replaceWith))
{
_wordList.Add(word, replaceWith);
}
}
}