Guava contains the simple, yet very useful class Strings, with some useful methods to help you work with strings. Notable among them are: nullToEmpty: given a String, returns it if it’s not null and the empty string "" otherwise. Useful to sanitize inputs when you don’t know whether the caller will use empty strings or null. isNullOrEmpty: given a String, returns true if it is null or the empty string "".