fix RGB string parser to handle 3 digit hex format

Just a small patch to handle short hex strings properly