public static String getFirstLine ( final String message ) { if ( isEmpty ( message ) ) { return message ; } if ( message . contains ( "\n" ) ) { return message . split ( "\n" ) [ 0 ] ; } return message ; }
Gets the first line .