condition the variables so that they will be valid inputs for the hue api