Fixed calculation bug of numberOfSeparators