Fix Str::endsWith() with needles that start with space and numbers.