Changed name of replace method so as to not risk breaking other libraries