The function is intended to be used with string parameters that are optional and are copied when defined. This removes the need to copy the string to a local variable to perform checks on the value.