Update JPNS.java

Change - replace(" ", "") to replaceAll("[\\s><]", "")