Fixing prior pr by converting endsWith(block) to uppercase.