Returns the value of the key if found, otherwise returns defaultValue.
key
defaultValue
This avoids needing to manually check for null.
String getOrDefault(String key, String defaultValue);