Rename function debug function
Faster pattern matching for colornames