Replace string that contains special characters as well.