verify replaceAll method