public static boolean isNoteValid(String value){
  return value == null || value.length() < 800 * 50;
}

public static boolean isNoteValid ( String value ) { return value == null || value . length ( ) < 800 * 50 ; }
returns true if the note is valid .
