Index: /trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java	(revision 16954)
+++ /trunk/src/org/openstreetmap/josm/io/GeoJSONReader.java	(revision 16955)
@@ -43,4 +43,5 @@
 import org.openstreetmap.josm.gui.progress.ProgressMonitor;
 import org.openstreetmap.josm.tools.Logging;
+import org.openstreetmap.josm.tools.Utils;
 
 /**
@@ -391,5 +392,5 @@
             try {
                 while ((line = reader.readLine()) != null) {
-                    line = line.replaceFirst(rs, "");
+                    line = Utils.strip(line, rs);
                     try (InputStream is = new ByteArrayInputStream(line.getBytes(StandardCharsets.UTF_8))) {
                         parse(is);
Index: /trunk/src/org/openstreetmap/josm/tools/Utils.java
===================================================================
--- /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 16954)
+++ /trunk/src/org/openstreetmap/josm/tools/Utils.java	(revision 16955)
@@ -744,7 +744,4 @@
      */
     public static String strip(final String str) {
-        if (str == null || str.isEmpty()) {
-            return str;
-        }
         return strip(str, DEFAULT_STRIP);
     }
