How to remove extra spaces in a String with regex in Java

Published --