string replace with keys as the search and values as the replace