private String quote ( final String lbl ) { if ( lbl . indexOf ( ' ' ) == - 1 ) { return lbl ; } return new StringBuffer ( "'" ) . append ( lbl ) . append ( ' ' ) . toString ( ) ; }
Quotes the label if required .