Check text width using ansicode aware len function

Uses ansi_len instead of len on strings