Color switch string to hash