replSpecChars() method and test