Using StringUtils.equals rather than have multiple checks