color prefixColour(String ID){ color theCol; String Prefix = ""; int h=255; int s=255; int v=255; Pattern p = Pattern.compile("[A-Z]+"); // look for a capital letter 1 or more times Matcher m = p.matcher(ID); if (m.lookingAt()){ Prefix = m.group(); } for (int c=0; c