Testing String replace implementation.