Added hex color checking with if using regular expression