for(i = 0; i < myString.length()||!reEnter; i++) {
if (myString.charAt(i)==('\0')){

With an OR statement only one of the conditions needs to be true. Since you initialise reEnter to false,...