Remove ANSI escape sequences from a string
strip_style(string)
string
The input string.
The cleaned up string.
strip_style(red("foobar")) == "foobar"