added a replace feature.  modified tests.  all in green.