public static String toPlain ( String input ) { Matcher matcher = SPACE_PATTERN . matcher ( input ) ; if ( matcher . find ( ) ) { return matcher . replaceAll ( "" ) ; } else { return input ; } }
Removes any spaces contained in the String thereby converting the input into a plain IBAN