Modified some If condition to use StringUtils upon checking values