private static String swapDotAndComma(@NonNull final String text) {
        final char[] characterArray = text.toCharArray();
        for (int i = 0; i < characterArray.length; i++) {
            if (characterArray[i] == '.') {
                characterArray[i] = ',';
            } else if (characterArray[i] == ',') {
                characterArray[i] = '.';
            }
        }

        return new String(characterArray);
    }
Removes all single spaces after a comma (see #2404)

@param text the string to substitute
@return the substituted string without the single spaces
main/src/main/java/cgeo/geocaching/location/GeopointParser.java