@Override
    public String exec(Tuple input) throws IOException {
        if ( input == null || input.size() == 0 ) {
            return null;
        }

        try {
            String toCollapse = (String) input.get(0);
            if ( toCollapse == null ) {
                return null;
            }
            return LINE_BREAK.matcher(toCollapse).replaceAll(" ");
        } catch ( Throwable t ) {
            t.printStackTrace();
            throw WrappedIOException.wrap("Could not process tuple: " + input, t);
        }
    }