add replaceAll function