Got rid of unused 'replaceAll' function