added test for string replace function