the endsWith function's logic causes ${fn:endsWith('00', '0')} returns false. It's obviously wrong.
*** This bug has been marked as a duplicate of bug 39284 ***