What would be the most efficient method for comparing a string against approved color code alternatives and if they are not present, remove them? I'm hoping there is a fast solution that doesn't involve Regex.