
public class JI9052036 {

	public static void main(String[] args){
        String oldValue = "BIO GOURMETSUn échéancier signé  ,                                                    Une ouverture de compte ";
        String newValue = oldValue.replaceAll("^(\\p{Z}|\\s)+", "");
        newValue = newValue.replaceAll("(\\p{Z}|\\s)+$", "");
        System.out.print("'"+newValue+"'");
    }

}
