Function removeColor

Removes ansi escape codes (such as terminal colors) within the given string.