add test for string replacing