While(isempty mistake corrected.)