LIBITD 195. Changed check to ignore case. The preffered string should be all lowercase for formal=xml or json