public static boolean isNotebookTitleValid(String value){
  return value == null || value.length() < 1024;
}

public static boolean isNotebookTitleValid ( String value ) { return value == null || value . length ( ) < 1024 ; }
returns true if the notebook title is valid .
