minor exception message tweak
added stub for Replace() function
first implementation of Replace()
optimized Replace() with unsafe code
add some tests