return empty object for null, empty, and whitespace input