Added string replace function.