Fixes bug with the insertTo method counting special characters