question: public static String removeColors ( String line ) { int length = line . length ( ) ; StringBuilder buffer = new StringBuilder ( ) ; int i = 0 ; while ( i < length ) { char ch = line . charAt ( i ) ; if ( ch == '' ) { i ++ ; if ( i < length ) { ch = line . charAt ( i ) ; if ( Character . isDigit ( ch ) ) { i ++ ; if ( i < length ) { ch = line . charAt ( i ) ; if ( Character . isDigit ( ch ) ) i ++ ; } if ( i < length ) { ch = line . charAt ( i ) ; if ( ch == ',' ) { i ++ ; if ( i < length ) { ch = line . charAt ( i ) ; if ( Character . isDigit ( ch ) ) { i ++ ; if ( i < length ) { ch = line . charAt ( i ) ; if ( Character . isDigit ( ch ) ) i ++ ; } } else i -- ; } else i -- ; } } } } } else if ( ch == '' ) i ++ ; else { buffer . append ( ch ) ; i ++ ; } } return buffer . toString ( ) ; }
target:  Removes all colours from a line of IRC text.