Upcase cid if cid is not blank