Use StringUtils that Spigot supports.