In StringUtils.java you're checking is string length = 0 or not. We can simply check with isEmpty() method.