Changed the modifier of method replaceSpecialchar to private instead of
public