if eName comes always not null, you can just use name.equalsIgnoreCase(eName)