Hack to measure lengths of strings with ansi colors