Ver originalString Nombre ="Jc Mouse"; if(!Nombre.matches("[A-Z][a-zA-Z]*\\s[A-Z][a-zA-Z]*")){ System.out.println("error"); }else{ System.out.println("correcto"); }