Ok. 
if(mark.contains(' ')) thr
if(mark.charAt(mark.length() - 1) == '.') thr
for (String each : mark.split("\.")) if each.isEmpty() thr

?