add a lengthdiff function

calculates the length difference between a string with
and without its colors
bug fix for converting a container into an int