Added edge case for ANSI escape codes