fixed type on endsWith()