better handling of empty color strings