Relax the error message checking to deal with the different output on IBM's JDK.