Created isShorthandHex function to determine if a hex color is already in shorthand format