Replace some comparisons with empty strings with equivalent fast tests.
De-duplicate cgame colour parsing code.