Fixed issue where nil was being returned for an empty string when it should be returning an empty array