func to get acurate length of ansi color strings