Added string replace function