Updated to handle empty target year, and lowercase characters in OZ id.