Calculate decimal string size after trimming zeros