Add logic to ignore empty strings if requested.
Add logic to allow ignoring null and undefined values.