It's better to revert back to using `if (firstName.trim().equals(""))` rather than `if(firstName.isEmpty())`.