Added some sensitivity to the capitilsation of the word being replaced by wang
Added TEsts