Fix wrong return value in String.endsWith when sub.length > str.length

endsWith returns True whenever sub.length = str.length + 1. This line fixes it.