class NMEA {

    @NonNull
    static String[] splitNmea(@NonNull String nmea) {
        // Strip checksum
        final int starIndex = nmea.lastIndexOf('*');
        if (0 < starIndex && starIndex < nmea.length()) {
            nmea = nmea.substring(0, starIndex);
        }
        // Split on comma, -1 preserves trailing columns
        return nmea.split(",", -1);
    }

}