Added feature to shorten hexadecimal colour codes to their shorthand versions.
Quick fix to prevent calls containing percentages into hex colours e.g. rgb(100%, 0%, 10)
Will be handled in future commit
Updated tests