ANSI control sequence aware string functions
