Rayhan Muktader 18 Light Poster

Try this:

lineStr = scanner.nextLine();
	        
	       byte  bytes[] = lineStr.getBytes();
	       char tab = 9;
	       if((char)bytes[0]==((char)tab)) {		   
		 lineStr = "NA" +lineStr;
	       }

simple :)

tux4life commented: Good suggestion, simple, clever, and better than mine :) +18