Split replaceSpecialRange method